// 组合函数
const _ = require("loadsh")
const fp = require("loadsh/fp")

const fn = fp.flowRight(fp.replace(/\s+/g, "_"), fp.toLower)
console.log(fn("fdsfds fdsfds"))

// world wild web ==> W. W. W.

const func = fp.flowRight(fp.join(". "), fp.map(fp.flowRight(fp.first, fp.toUpper)), fp.split(" "))
console.log(func("world wild web"))

const split =_.curry((sep, str) =>_.split(str, sep)) 
const ff = split(" ", "3132 rewrew")
console.log(ff)